home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-07-20 | 3.7 KB | 116 lines | [TEXT/MPS ] |
-
- {
- ISDNToolIntf.p
- Pascal Interface to the Apple ISDN Telephone Tool
-
- Copyright Apple Computer, Inc. 1990-1993
- All rights reserved
- }
-
-
- {$IFC UNDEFINED UsingIncludes}
- {$SETC UsingIncludes := 0}
- {$ENDC}
-
- {$IFC NOT UsingIncludes}
- UNIT ISDNToolIntf;
- INTERFACE
- {$ENDC}
-
- {$IFC UNDEFINED UsingISDNToolIntf}
- {$SETC UsingISDNToolIntf := 1}
-
- {$I+}
- {$SETC ISDNToolIntfIncludes := UsingIncludes}
- {$SETC UsingIncludes := 1}
-
- {$IFC UNDEFINED UsingTypes}
- {$I $$Shell(PInterfaces)Types.p}
- {$ENDC}
-
- {$IFC UNDEFINED UsingTelephones}
- {$I $$Shell(PInterfaces)Telephones.p}
- {$ENDC}
-
- {$SETC UsingIncludes := ISDNToolIntfIncludes}
-
- CONST
-
- { csCodes }
- telISDNLocalRecord = 1;
- telISDNLocalPlayback = 2;
- telISDNNetworkRecord = 3;
- telISDNNetworkPlayback = 4;
- telISDNLocalStop = 5;
- telISDNNetworkStop = 6;
- telISDNBeginRPSession = 7;
- telISDNEndRPSession = 8;
-
- { Result Codes }
- isdnRPnoError = 0; { no error during RP }
- isdnRPLocalDisconnect = 1; { local user disconnected during RP }
- isdnRPRemoteDisconnect = 2; { remote user disconnected during RP }
- isdnRPLocalStop = 3; { local side stopped local record/playback via TELISDNLocalStop}
- isdnRPNetworkStop = 4; { local side stopped network record/playback via TELISDNNetworkStop }
- isdnRPLocalInterruption = 5; { local side interrupted network rec/play by picking up phone }
- isdnRPBusy = 6; { session is in use }
- isdnRPNoLocalSession = 7; { local stop didn't work because no local session was in use }
- isdnRPNoNetworkSession = 8; { network stop didn't work because no network session was in use }
-
- { Error Codes }
- isdnError = (-1001); { some error resulted in stopping of playback }
- isdnBadBufferLength = (-1002); { bad buffer length specified in bufflen }
- isdnBadNetBufferLength = (-1003); { bad buffer length specified in netRecordBufferLength }
- isdnBadBufferSpecified = (-1004); { bad buffer specified in buffPtr }
- isdnBadNetBufferSpecified = (-1005); { bad buffer specified in netRecordBufferPtr }
- isdnBadcsCode = (-1006); { bad csCode specified }
- isdnCannotLoadLocalRPTask = (-1007); { could not load local Rec/Play task to card }
- isdnCannotLoadNetworkRPTask = (-1008); { could not load network Rec/Play task to card }
- isdnCardNotRunning = (-1009); { ISDN card is not running }
- isdnCANotInValidState = (-1010); { CA is not in valid state (active or alerting) for network R/P }
-
-
-
- { Error Codes that can be returned in termOtherMsg }
- isdnFailure = (-51); { board response bad or missing }
- isdnBadData = (-52); { invalid message data sent by tool }
- isdnNoMemory = (-53); { no buffers available for tool to card communication }
- isdnNoCode = (-55); { isdn card not downloaded }
- isdnSmallBuffer = (-57); { read buffer too small }
- isdnLostVFIMsg = (-58); { VFI queue overflow }
- isdnBadSlot = (-59); { selected slot has no card }
- isdnRestart = (-60); { isdn code restarted }
- isdnBusyVFI = (-61); { R/P or NR/P in progress }
- isdnBadVFICmd = (-62); { unrecognized VFI command type }
- isdnReqExcl = (-63); { VFI req has exclusive parms }
- isdnReqUnavailable = (-64); { VFI req unavailable }
- isdnReqState = (-65); { VFI req can't be executed now }
- isdnBadProc = (-66); { bad receive notify request }
-
- TYPE
-
- TELISDNOtherPBPtr = ^TELISDNOtherPB;
- TELISDNOtherPB = RECORD
- csCode : INTEGER;
- bufferPtr : Ptr;
- bufferLength : LONGINT;
- netRecordBufferPtr : Ptr;
- netRecordBufferLength : LONGINT;
- hTELCA : TELCAHandle;
- async : INTEGER;
- completionRtn : ProcPtr;
- result : TELErr;
- reserved0 : INTEGER;
- reserved1 : INTEGER;
- reserved2 : LONGINT;
- reserved3 : LONGINT;
- END;
-
-
-
- {$ENDC} {UsingISDNToolIntf}
-
- {$IFC NOT UsingIncludes}
- END.
- {$ENDC}
-